<style>
.win {
	color: Green;
}
.lost {
	color: Fuchsia;
}
.btnplus {height:12pt; width:12pt; margin:0; border:1px; background:#6363A6; color:white; font:10pt Tahoma;cursor: pointer;}
.btnmin {height:12pt; width:12pt; margin:0; border:1px; background:#964A6E; color:white; font:10pt Tahoma;cursor: pointer;}
.btnchoice {
	padding: 2pt 2pt 2pt 2pt;
	border: 1pt solid #aaa;
	cursor: pointer;
}
.btnchoiced {
	padding: 2pt 2pt 2pt 2pt;
	border: 1px solid Lime;
	background-color: Green;
	color: white;
}
.rate {font-weight:bold; color:red; font-family:Tahoma}
.td1red {
	background-color:#DFF9FF;color:red;font-weight:bold;text-align:center;
}
.td1blue {
	background-color:#DFF9FF;color:blue;font-weight:bold;text-align:center;
}
.td1green {
	background-color:#DFF9FF;color:green;font-weight:bold;text-align:center;
}
</style>
<script src="js_3d/showRateRecord.js"></script>
<script src="scr/{jslang}/now3.js"></script>
<div id="divRateRecord"></div>
{menuList}
<br>
<span id="hktime"></span>，<span id="countdownstr"></span>

<table width="800" border=0 cellpadding=5 cellspacing=0>
<tr valign=top cellpadding=5>
<td><div id=div21></div>合计：<b id=amount21></b></td>
<td> </td>
<td><div id=div22></div>合计：<b id=amount22></b></td>
</tr></table>


<br><input type=button value="资料刷新" onclick=timer() onmouseout="this.style.color='';" onmouseover="this.style.color='#0CDDFF';">

<script>
_id = {lotto_id};
_open = "{open}";

_total = "合计";
_tb21head = "<td nowrap>生肖</td><td nowrap>金额</td><td nowrap>输赢</td><td nowrap>赔率</td><td nowrap>操盘</td>";
_tb22head = "<td nowrap>尾数</td><td nowrap>金额</td><td nowrap>输赢</td><td nowrap>赔率</td><td nowrap>操盘</td>";
_tb34head = "<td nowrap>类别</td><td nowrap>金额</td><td nowrap>输赢</td><td nowrap>赔率</td><td nowrap>操盘</td>";
_name21 = ["","鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"];
_name22 = ["","1 尾","2 尾","3 尾","4 尾","5 尾","6 尾","7 尾","8 尾","9 尾","0 尾"];

_status = "更新资料中.....";

function nowdate()
{
	document.all.hktime.innerHTML = "香港时间：<b>"+now.getDate()+"日"+d2(now.getHours())+":"+d2(now.getMinutes())+":"+d2(now.getSeconds())+"</b>";
	now.setTime(now.getTime() + 1000);
}

function countdown()
{
	var str = "<font color=red><b>已经截止下注！</b></font>";
	timediff = timestap;
	if (timestap >= 0) {
		days = Math.floor(timediff / (60 * 60 * 24));
		timediff -= days * (60 * 60 * 24);
		hours = Math.floor(timediff / (60 * 60));
		timediff -= hours * (60 * 60);
		mins = Math.floor(timediff / (60));
		timediff -= mins * (60);
		secs = Math.floor(timediff);
	
		str = "距离截止下注时间还有 ";
		if (days > 0 ) str += "<b>" + days + "</b> 天 ";
		if (hours > 0) str += "<b>" + hours + "</b> 小时 ";
		if (mins > 0) str += "<b>" + mins + "</b> 分钟 ";
		str += "<b>" + secs + "</b> 秒 ";
		timestap-=1;
	}
	countdownstr.innerHTML =  str;
}

var timestap = {timestap};
var now = new Date(1000 * {phptime});

setInterval("nowdate()", 1000);
setInterval("countdown()", 1000);


function stopnow()
{
	window.status = "Stop now....";
	if (timer_id) clearTimeout(timer_id);
    XH1.open("POST","op.php?op=admin&fp=ratediff&cmd=stopnow",false); 
    try{XH1.send("");}catch(E){}
//    if (XH1.responseText=="1") {
    	alert("Stop now success!");
    	event.srcElement.disabled=true;
		window.status = "";
	    timer();
//    } else {
//    	alert("Stop now fail!");
//    }
        location.reload();

}

</script>